package com.sykj.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sykj.bean.BisNurseBagPage;
import com.sykj.bean.bis.BisNurseBag;
import com.sykj.service.BisNurseBagService;
import com.sykj.util.reponse.BaseResponse;
import com.sykj.util.reponse.CommonEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class BisNurseBagController {
    @Autowired
    private BisNurseBagService  bisNurseBagService;

    @RequestMapping("bisNurseBag/querys")
    public BaseResponse querys(BisNurseBagPage bisNurseBagPage){

        Page pages= new Page(bisNurseBagPage.getPage(),bisNurseBagPage.getLimit());

        IPage<BisNurseBagPage> querys = bisNurseBagService.querys(pages, bisNurseBagPage);

        return new BaseResponse(CommonEnum.LAYUI_SUCCESS,querys);
    }

}
